@import './base.less';
@baseSize: 3.75vw;

body {
  background-color: #f9fafb;
}

.header {
  position: sticky;
  left: 0;
  top: 0;
  z-index: 99;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: (50 / @baseSize);
  background-color: #fff;

  img {
    width: (235 / @baseSize);
    height: 100%;
  }

  .right {
    width: (80 / @baseSize);
    height: (30 / @baseSize);
    background-color: #ffe31b;
    border-radius: (15 / @baseSize);
    font-size: (13 / @baseSize);
    color: #000000cc;
    text-align: center;
    line-height: (30 / @baseSize);
    margin-right: (15 / @baseSize);
  }
}

.search {
  width: (343 / @baseSize);
  height: (32 / @baseSize);
  background-color: #f2f4f5;
  margin: (10 / @baseSize) auto;
  border-radius: (16 / @baseSize);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: (14 / @baseSize);
  color: #A1A4B3;

  i {
    font-size: (18 / @baseSize);
    margin-right: (6 / @baseSize);
  }
}

.banner {
  position: relative;
  width: (345 / @baseSize);
  height: (108 / @baseSize);
  overflow: hidden;
  margin: 0 auto;

  ul {
    display: flex;

    img {
      width: (345 / @baseSize);
      height: (108 / @baseSize);
      border-radius: (10 / @baseSize);
    }
  }

  ol {
    display: flex;
    position: absolute;
    left: 50%;
    bottom: (10 / @baseSize);
    transform: translate(-50%, 0);

    li {
      width: (5 / @baseSize);
      height: (5 / @baseSize);
      border-radius: 50%;
      margin: 0 (2 / @baseSize);
      background-color: rgba(255, 255, 255, 0.5);
    }

    .active {
      background-color: #fff;
    }
  }
}

.list {
  padding: 0 (15/ @baseSize);
  margin-top: (20 / @baseSize);

  .content {
    width: 100%;

    li {
      display: flex;
      align-items: center;
      height: (111 / @baseSize);
      background-color: #fff;
      margin-bottom: (15 / @baseSize);
      border-radius: (16 / @baseSize);

      .pic {
        margin-right: (20 / @baseSize);

        img {
          width: (105 / @baseSize);
          height: (105 / @baseSize);
          border-radius: (10 / @baseSize);
        }
      }

      .info {
        line-height: 1.8;

        h5 {
          font-size: (14 / @baseSize);
          color: #333333;

          i {
            font-size: (14 / @baseSize);
          }
        }

        p {
          font-size: (12 / @baseSize);
          color: #A1A4B3;
        }
      }
    }
  }
}

// 公共头部
.hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: (28 / @baseSize);
  margin-bottom: (13 / @baseSize);

  h4 {
    font-size: (20 / @baseSize);
    color: #262338;
  }

  a {
    display: flex;
    font-size: (12 / @baseSize);
    color: #A1A4B3;

    i {
      font-size: (16 / @baseSize);
    }
  }
}

.recommend {
  .hd {
    padding: 0 (15 / @baseSize);
  }

  .content {
    padding-left: (16 / @baseSize);

    ul {
      display: flex;
      flex-wrap: wrap;

      li {
        width: (119 / @baseSize);
        height: (155 / @baseSize);
        margin-bottom: (18 / @baseSize);

        .pic {
          position: relative;

          img {
            width: (105 / @baseSize);
            height: (105 / @baseSize);
            border-radius: (10 / @baseSize);
          }

          .mask {
            position: absolute;
            left: 0;
            bottom: 0;
            width: (70 / @baseSize);
            height: (28 / @baseSize);
            background-color: rgba(0, 0, 0, 0.5);
            border-radius: 0 (10 / @baseSize) 0 (10 / @baseSize);
            text-align: center;
            line-height: (28 / @baseSize);
            font-size: (14 / @baseSize);
            color: #fff;
          }
        }

        p {
          margin-top: (10 / @baseSize);
          width: (105 / @baseSize);
          font-size: (14 / @baseSize);
          color: #333333;
        }

      }
    }
  }
}

.footer {
  position: fixed;
  left: 0;
  bottom: (30 / @baseSize);
  width: 100%;
  height: (45 / @baseSize);

  .download {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: (320 / @baseSize);
    height: (45 / @baseSize);
    margin: 0 auto;
    padding: 0 (9 / @baseSize) 0 (18 / @baseSize);
    background-color: #fff;
    border-radius: (22 / @baseSize);

    img {
      width: (37 / @baseSize);
      height: (37 / @baseSize);
    }

    p {
      font-size: (14 / @baseSize);
      font-weight: 700;
      color: #333333;
    }

    i {
      width: (27 / @baseSize);
      height: (27 / @baseSize);
      background-color: #f7f7f7;
      border-radius: 50%;
      text-align: center;
      line-height: (27 / @baseSize);
      font-size: (16 / @baseSize);
    }
  }
}